package com.web709.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
// 发布需求实体类
@Data
@ApiModel(value = "需求实体类")
public class Demand {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "需求ID")
    private int id;

    @ApiModelProperty(value = "用户ID")
    private int userId;

    @ApiModelProperty(value = "志愿者ID")
    private int volunteerId;

    @ApiModelProperty(value = "需求标题")
    private String title;

    @ApiModelProperty(value = "需求描述",example = "详细描述需求内容，包括但不限于地点、时间、物品等")
    private String description;

    @ApiModelProperty(value = "需求状态", example = "如“待接单”、“进行中”、“已完成”等")
    private int status;

    @ApiModelProperty(value = "需求类型", example = "如“接送”、“陪聊”、“代购物品”等")
    private String type;

    @ApiModelProperty(value = "积分数量")
    private Integer points;

    @ApiModelProperty(value = "接单时间")
    private LocalDateTime acceptTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
